package lab02.test35;

public class Worker extends Employee{

    double dsalary;
    int day;

    public Worker(){
        this.dsalary = dsalary;
        this.day = day;
    }

    @Override
    public double computeSalary() {
        return dsalary*day ;
    }

    @Override
    public String toString() {
        return  "ID："+ID+"姓名："+name+
                "性别："+sex+"薪水："+(dsalary*day);
    }
}
